/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.mvc.subvenciones;

import com.beans.SubvencionBean;
import com.gestores.GestionSubvenciones;
import com.mvc.RequestHandler;
import java.io.IOException;
import javax.naming.NamingException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author victor
 */
public class ConsultaSubvencion  implements RequestHandler {

    @Override
    public void handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, NamingException {
        String idSubvencion = (String) request.getParameter("idSubvencion");
        String historica = (String) request.getParameter("historica");

        SubvencionBean subvencion=GestionSubvenciones.getInstance().consultaSubvencion(idSubvencion);

        request.setAttribute("historica", historica);
        request.setAttribute("subvencion", subvencion);
    }

}
